package cn.rongdao.jrkabao.ui.loan.uicomponent;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

import cn.rongdao.jrkabao.R;


/**
 * Created by jiangyongxing on 2017/9/19.
 * 描述：
 */

public class CommonHeaderUIComponent extends RelativeLayout {

    private TextView mTitle;

    public CommonHeaderUIComponent(Context context) {
        super(context);
    }

    public CommonHeaderUIComponent(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CommonHeaderUIComponent(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        mTitle = (TextView) findViewById(R.id.lch_tv_title);
    }

    public void setContent(String title) {
        mTitle.setText(title);
    }
}
